package com.globallogic.training.javase.university.member;

import java.util.Date;


/**
 * Student is a person attending university. 
 *  
 * @author Artem.Zeltinsh
 */
public class Student extends Person implements Comparable<Student> {
	
	public Student(String fullName, Date dateOfBirth) {
		super(fullName, dateOfBirth);
	}

	@Override
	public int compareTo(Student other) {
		if (this == other) {
			return 0;
		}
		
		return getFullName().compareToIgnoreCase(other.getFullName());
	}
}
